Semantic Dom Diff
Part of Open Web Components
Open Web Components provides a set of defaults, recommendations and tools to help facilitate your web component project. Our recommendations include: developing, linting, testing, building, tooling, demoing, publishing and automating.
Manual Setup
yarn add @open-wc/semantic-dom-diff --dev
Basics
import { getSemanticDomDiff } from '@open-wc/semantic-dom-diff';
const leftTree = `
<div>foo</div>
`;
const rightTree = `
<div>bar</div>
`;
const diff = getSemanticDomDiff(leftTree, rightTree);